﻿using SH.Common.CommonReturn;
using SH.Common.DataDictionary;
using SH.Order.Application.IServices.Dto;
using SH.Order.Application.IServices.IDic;
using SH.Order.Infrastructure.IRepository;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace SH.Order.Application.Services
{
    public class DicServices : BaseServices<Dic>, IDicServices
    {
        private readonly IDicRepository _dicRepository;
        public DicServices(IDicRepository dicRepository): base(dicRepository)
        {
            _dicRepository = dicRepository;
        }

        public List<Dic> DicShow(string Identification = "")
        {
            return _dicRepository.GetDics().Where(x => x.Identification == Identification).ToList();
        }
    }
}
